/*
 *代码由框架生成,任何更改都可能导致被代码生成器覆盖
 *如果数据库字段发生变化，请在代码生器重新生成此Model
 */
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using VOL.Entity.AttributeManager;
using VOL.Entity.SystemModels;

namespace VOL.Entity.DomainModels
{
    [Entity(TableCnName = "计量单位",TableName = "unit")]
    public partial class unit:BaseEntity
    {
        /// <summary>
       ///主键
       /// </summary>
       [Key]
       [Display(Name ="主键")]
       [Column(TypeName="int")]
       [Editable(true)]
       [Required(AllowEmptyStrings=false)]
       public int Id { get; set; }

       /// <summary>
       ///单位编码
       /// </summary>
       [Display(Name ="单位编码")]
       [MaxLength(50)]
       [Column(TypeName="nvarchar(50)")]
       [Editable(true)]
       public string UnitCode { get; set; }

       /// <summary>
       ///单位名称
       /// </summary>
       [Display(Name ="单位名称")]
       [MaxLength(50)]
       [Column(TypeName="nvarchar(50)")]
       [Editable(true)]
       public string UnitName { get; set; }

       /// <summary>
       ///是否是主单位
       /// </summary>
       [Display(Name ="是否是主单位")]
       [Column(TypeName="int")]
       [Editable(true)]
       public int? Isdel { get; set; }

       /// <summary>
       ///是否启用
       /// </summary>
       [Display(Name ="是否启用")]
       [Column(TypeName="int")]
       [Editable(true)]
       public int? IsEnabled { get; set; }

       /// <summary>
       ///备注
       /// </summary>
       [Display(Name ="备注")]
       [MaxLength(200)]
       [Column(TypeName="nvarchar(200)")]
       [Editable(true)]
       public string Notes { get; set; }

       /// <summary>
       ///主单位
       /// </summary>
       [Display(Name ="主单位")]
       [MaxLength(255)]
       [Column(TypeName="nvarchar(255)")]
       [Editable(true)]
       public string Mainunit { get; set; }

       /// <summary>
       ///与主单位换算比例
       /// </summary>
       [Display(Name ="与主单位换算比例")]
       [Column(TypeName="int")]
       [Editable(true)]
       public int? Proportion { get; set; }

       
    }
}